Skip to content

Fixed app startup crashing nautobot during startup in some cases. #321

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

gsnider2195
Copy link
Contributor

@gsnider2195 gsnider2195 commented Feb 18, 2025

Closes: #320

What's Changed

Nautobot core v2.4.3 upgraded to constance version 4. Constance v4 changes their database value field from a PickledObjectField to a TextField where they store JSON data. When we try to access constance before their 0003 data migration runs it raises a JSONDecodeError because the data has not yet been migrated from pickle data to JSON data. Device onboarding accesses constance at import time and prevents the database migrations from running at all.

To Do

  • Explanation of Change(s)
  • Added change log fragment(s) (for more information see the documentation)
  • Attached Screenshots, Payload Example
  • Unit, Integration Tests
  • Documentation Updates (when adding/changing features)
  • Outline Remaining Work, Constraints from Design

@Dav-C Dav-C merged commit e4cfde7 into develop Feb 18, 2025
14 checks passed
@cmsirbu cmsirbu deleted the u/gas-320-app-startup-constance branch February 20, 2025 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Constance settings are being accessed at import time causing migrations to fail
5 participants